﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MinhTam.DataAccess.Web;

public partial class diadiemdulich : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            hienthi_thongtin();

        }
    }
    public void hienthi_thongtin()
    {
        try
        {


            string tinhthanh = Request.QueryString["req"];

            string sql = @"select a.*,b.ten_tinh_thanh from dia_diem_du_lich a left join tinh_thanh b on a.tinh_thanh=b.tinh_thanh_id where a.tinh_thanh=" + tinhthanh;

           
            DataTable table = SQLConnectWeb.GetData(sql);
            tentinh.Text = table.Rows[0]["ten_tinh_thanh"].ToString();
            list.DataSource = table;
            list.DataBind();

        }
        catch
        {
        }

    }
}